<?php
/* @var $this UserController */
/* @var $model User */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'user-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'use_username'); ?>
		<?php echo $form->textField($model,'use_username',array('size'=>35,'maxlength'=>35)); ?>
		<?php echo $form->error($model,'use_username'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'use_password'); ?>
		<?php echo $form->textField($model,'use_password',array('size'=>35,'maxlength'=>35)); ?>
		<?php echo $form->error($model,'use_password'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'use_salt'); ?>
		<?php echo $form->textField($model,'use_salt',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'use_salt'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'use_email'); ?>
		<?php echo $form->textField($model,'use_email',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'use_email'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'use_fullname'); ?>
		<?php echo $form->textField($model,'use_fullname',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'use_fullname'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'use_birthday'); ?>
		<?php echo $form->textField($model,'use_birthday'); ?>
		<?php echo $form->error($model,'use_birthday'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'use_sex'); ?>
		<?php echo $form->textField($model,'use_sex'); ?>
		<?php echo $form->error($model,'use_sex'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'use_address'); ?>
		<?php echo $form->textField($model,'use_address',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'use_address'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'use_province'); ?>
		<?php echo $form->textField($model,'use_province'); ?>
		<?php echo $form->error($model,'use_province'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'use_phone'); ?>
		<?php echo $form->textField($model,'use_phone',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'use_phone'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'use_mobile'); ?>
		<?php echo $form->textField($model,'use_mobile',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'use_mobile'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'use_yahoo'); ?>
		<?php echo $form->textField($model,'use_yahoo',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'use_yahoo'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'use_skype'); ?>
		<?php echo $form->textField($model,'use_skype',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'use_skype'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'use_group'); ?>
		<?php echo $form->textField($model,'use_group'); ?>
		<?php echo $form->error($model,'use_group'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'use_status'); ?>
		<?php echo $form->textField($model,'use_status'); ?>
		<?php echo $form->error($model,'use_status'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'use_regisdate'); ?>
		<?php echo $form->textField($model,'use_regisdate'); ?>
		<?php echo $form->error($model,'use_regisdate'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'use_enddate'); ?>
		<?php echo $form->textField($model,'use_enddate'); ?>
		<?php echo $form->error($model,'use_enddate'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'use_key'); ?>
		<?php echo $form->textField($model,'use_key',array('size'=>60,'maxlength'=>150)); ?>
		<?php echo $form->error($model,'use_key'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'use_lastest_login'); ?>
		<?php echo $form->textField($model,'use_lastest_login'); ?>
		<?php echo $form->error($model,'use_lastest_login'); ?>
	</div>
	            <?php if (CCaptcha::checkRequirements()): ?>
                <div class="row" style="margin-left:-10px;">
                    <?php echo $form->labelEx($model, 'verifyCode'); ?>
                    <div>
                        <?php $this->widget('CCaptcha', array('buttonLabel' => "Refesh", 'showRefreshButton' => false, 'clickableImage' => true)); ?>
                        <br/>
                        <?php echo $form->textField($model, 'verifyCode'); ?>
                    </div>
                    <div class="hint">Nhập các ký tự như trong hình trên.<br/>
                        Nếu nhìn không rõ bạn refresh lại hình.</div>
                    <?php echo $form->error($model, 'verifyCode'); ?>
                </div>
            <?php endif; ?>
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->